package cn.edu.scau.cmi.zenghanxiong.compsite.consistent;

import java.util.ArrayList;
import java.util.List;

public class ConsistentLeaf extends ConsistentComponent{
	public ConsistentLeaf(String name) {
        super(name);
    }
   // private List<ConsistentComponent> childList = new ArrayList<>();

    public void addChild(ConsistentComponent child) {
    	throw new IllegalArgumentException("method is deprecated");
    }

    public void removeChild(ConsistentComponent child) {
    	throw new IllegalArgumentException("method is deprecated");
    }

    public List<ConsistentComponent> getChildren() {
    	throw new IllegalArgumentException("method is deprecated");
    }
    
    public String toString() {
        return "姓名：" + super.toString();
    }
}
